﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace project.MainClasses
{
    public class Tickets
    {
        
        int i_ticket;
        User owner;
        string date_must;
        string date_done;
        string status;
        int executor;
        Customer customer;
        Category category;

        Tickets  add(int id, string a1, string a2, string a3, int ex) {
            Tickets t = new Tickets();
            t.i_ticket = id;
            t.date_must = a1;
            t.date_done = a2;
            t.status = a3;
            t.executor = ex;
            return t;
            
        }
        void del() { }
        void edit() { }
        void selectTicketsByCategory(){}
        void selectTicketsByCustomer() { }
        void selectTicketsbyDate() { }
        void selectTicketsForPriorityCustomer() { }
        void selectTicketsForUser() { }

        public void start() {

            
                add(1,"28-09-12","26-09-12","done",1001);
                add(2, "17-09-12", "21-09-12", "failed", 1002);
                add(3, "02-10-12", "03-10-12", "failed", 1001);
                add(4, "11-09-12", "09-09-12", "done", 1004);
                add(5, "18-09-12", "15-09-12", "done", 1002);
            foreach (Tickets u in TicketList){
                Console.WriteLine(u.status);
            }
            
            
        
        }

    }
}